x86: re-arrange struct page_info members
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 30 Jan 2009 11:10:43 +0000 (11:10 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 30 Jan 2009 11:10:43 +0000 (11:10 +0000)
commitf1e6f665b97a8596f56e8dd675415efb013b8b3d
treec36f3bfac2e5a28311080fe77a56cf5db5661081
parent1065734fcb0667286d37fb48847bce6c12a9907f
x86: re-arrange struct page_info members

By combining the overlay fields that are 8 bytes long (on x86-64) into
a union separate from the one used for the 4 byte wide fields, no
unnecessary padding will be inserted while at the same time avoiding
to use __attribute__((__packed__)) on any of the sub-structures (which
risks misaligning structure members without immediately noticing).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/private.h
xen/include/asm-x86/mm.h